package com.yangyouqi.posthorse.web.from;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author 杨友奇
 * @Time 2018/6/29
 * 注册表单验证
 */
@Data
public class RegisterFrom {
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "昵称不能为空")
    private String nickname;

    @NotEmpty(message="密码不能为空")
    private String password;

    @NotEmpty(message = "手机号码不能为空")
    private String mobile;
}
